# Main:main.cc
# 	g++ -o Main main.cc
# .PHONY:clean
# clean:
# 	rm Main

CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++17 -g -pthread -I../server

# Server 源文件列表
SERVER_SRCS = ../server/TcpServer.cc ../server/EventLoop.cc ../server/Acceptor.cc \
              ../server/Buffer.cc ../server/Channel.cc ../server/Epoller.cc \
              ../server/InetAddress.cc ../server/Socket.cc ../server/TcpConnection.cc \
              ../server/LoopThreadPool.cc ../server/EventLoopThread.cc ../server/Logger.cc

Main: main.cc $(SERVER_SRCS)
	$(CXX) $(CXXFLAGS) -o Main main.cc $(SERVER_SRCS) -lpthread

.PHONY: clean
clean:
	rm Main